#define _CRT_SECURE_NO_WARNINGS
#include "S-Q.h"
namespace ZWY {

	void text_1()
	{
		stack<int,list<int>> haha;
		haha.push(1);
		haha.push(2);
		haha.push(3);

		cout << haha.size() << endl;

		while (!haha.empty())
		{
			cout << haha.top() << " ";
			haha.pop();
		}
		cout << endl;
	}

	void text_2()
	{
		queue<int, list<int>> haha;
		haha.push(1);
		haha.push(2);
		haha.push(3);

		cout << haha.size() << endl;

		while (!haha.empty())
		{
			cout << haha.back() << " ";
			haha.pop();
		}
		cout << endl;
	}

	void text_3()
	{
		queue<int> P;
		P.push(2);
		int& x = P.front();
		x = 6;
		cout << P.front();
	}
}
int main()
{
	//ZWY::text_1();
	//ZWY::text_2();
	//ZWY::Print(haha);
	ZWY::text_3();
	return 0;
}